import pathlib
import sys

sys.path.append(pathlib.Path(sys.path[0]).parent.as_posix())

from PySide6 import QtWidgets

from src.ui.MainWindow import MainWindow

import qasync

if __name__ == '__main__':
    app = QtWidgets.QApplication(sys.argv)

    loop = qasync.QEventLoop(app)

    wd = MainWindow()
    wd.show()
    with loop:
        loop.run_forever()
